package com.kangfu.db.domain.entity;

import com.kangfu.db.model.bo.TagNameBo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 文章对象 article
 * 
 * @author ruoyi
 * @date 2022-08-20
 */
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 标题 */
    private String title;

    /** 封面 */
    private String cover;

    /** 内容 */
    private String content;

    /** 需要多少次打卡可以解锁该文章 */
    private Integer unlockCheckinCount;

    /** 已阅读人数 */
    private Integer readCount;

    /** 是否置顶(0否 1是) */
    private Integer topFlag;

    /** 是否首页展示(0否,1是) */
    private Integer showMain;

    /** 帐号状态(0正常 1停用) */
    private String status;

    /** 删除标志(0代表存在 2代表删除) */
    private String delFlag;

    private String author;

    private List<TagNameBo> tagList;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public Integer getReadCount() {
        return readCount;
    }

    public void setReadCount(Integer readCount) {
        this.readCount = readCount;
    }

    public Integer getTopFlag() {
        return topFlag;
    }

    public void setTopFlag(Integer topFlag) {
        this.topFlag = topFlag;
    }

    public Integer getShowMain() {
        return showMain;
    }

    public void setShowMain(Integer showMain) {
        this.showMain = showMain;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public List<TagNameBo> getTagList() {
        return tagList;
    }

    public void setTagList(List<TagNameBo> tagList) {
        this.tagList = tagList;
    }

    public Integer getUnlockCheckinCount() {
        return unlockCheckinCount;
    }

    public void setUnlockCheckinCount(Integer unlockCheckinCount) {
        this.unlockCheckinCount = unlockCheckinCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("cover", getCover())
            .append("content", getContent())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
